# 以下为连接配置，请勿随意更改
twitter_db = "twitter_db"
# twitter_db = "de_election_history"
# twitter_db = "de_election"
userinfo_collection = "userinfo"
test_db = 'test'
mongodb_host = "10.10.69.30"
mongodb_port = 27017
mongodb_uri = "mongodb://10.10.69.30:27017/"

redis_host = '10.10.69.30'
redis_port = 6379
token_queue_name = 'token'
request_token_queue_name = 'request_token'
urgent_task_queue_name = 'urgent_task'
task_queue_name = 'task'
error_task_queue_name = 'error_task'
error_task_loop_count = 10
response_queue_name = 'response'

get_csrf_token = 'csrf_token'
# 以上为连接配置，请勿随意更改



referer_url = 'https://twitter.com/search?q={0}%20since%3A{1}%20until%3A{2}&src=typed_query&f=live{3}'
keywords_url = 'https://twitter.com/i/api/2/search/adaptive.json?include_profile_interstitial_type=1&include_blocking=1&include_blocked_by=1&include_followed_by=1&include_want_retweets=1&include_mute_edge=1&include_can_dm=1&include_can_media_tag=1&skip_status=1&cards_platform=Web-12&include_cards=1&include_ext_alt_text=true&include_quote_count=true&include_reply_count=1&tweet_mode=extended&include_entities=true&include_user_entities=true&include_ext_media_color=true&include_ext_media_availability=true&send_error_codes=true&simple_quoted_tweet=true&q={0}%20since%3A{1}%20until%3A{2}{3}&tweet_search_mode=live&count=20&query_source=typed_query&pc=1&spelling_corrections=1&ext=mediaStats%2ChighlightedLabel%2CvoiceInfo'
userinfo_url = 'https://twitter.com/i/api/graphql/Vf8si2dfZ1zmah8ePYPjDQ/UserByScreenNameWithoutResults?variables=%7B%22screen_name%22%3A%22{0}%22%2C%22withHighlightedLabel%22%3Atrue%7D'
timeline_url = 'https://twitter.com/i/api/graphql/2Kp5fEiA-6QtZoCKRCcGKg/UserTweetsAndReplies?variables=%7B%22userId%22%3A%22{0}%22%2C%22count%22%3A20%2C%22{1}withHighlightedLabel%22%3Atrue%2C%22withTweetQuoteCount%22%3Atrue%2C%22includePromotedContent%22%3Atrue%2C%22withTweetResult%22%3Afalse%2C%22withReactions%22%3Afalse%2C%22withUserResults%22%3Afalse%2C%22withVoice%22%3Afalse%2C%22withNonLegacyCard%22%3Atrue%2C%22withBirdwatchPivots%22%3Afalse%7D'

# 以下为连接配置，请在task_manager使用前更改
# 本次任务所获取的结果需保存到的目标数据库
history_twitter_db = "de_election_history"
target_db = twitter_db
# 本次任务所获取的结果需保存到的目标collection，如果为空则自动根据输入参数生成名称
data_collection = '2021_07'#2021-08-23_2021-08-29'
# 任务内容起始时间
start_date_str = '2021-07-28'
# 任务内容终止时间
end_date_str = '2021-07-28'

# data_collection = '2021_08'#2021-08-23_2021-08-29'
# # 任务内容起始时间
# start_date_str = '2021-08-01'
# # 任务内容终止时间
# end_date_str = '2021-08-31'

day_span = 1
latest = True
near_me = False
clear_exist_cmd = False
urgent = True
# 关键词请用英文逗号分开
# laschet | scholz | baerbock
# cdu,csu | spd | fdp | afd (except forecast) | die linke | die grünen
# china,chinese | xinjiang,xuar,uygur,uyghur | hongkong,Hong Kong
included_keywords = 'china,chinese'#Bündnis 90,Die Grünen,GRÜNE   #xinjiang,xuar,uyghur,uygur #
must_keywords = ''#xinjiang,uyghur
except_keywords = ''

# 以上为连接配置，请在task_manager使用前更改



# https://twitter.com/i/api/2/search/adaptive.json?include_profile_interstitial_type=1&include_blocking=1&include_blocked_by=1&include_followed_by=1&include_want_retweets=1&include_mute_edge=1&include_can_dm=1&include_can_media_tag=1&skip_status=1&cards_platform=Web-12&include_cards=1&include_ext_alt_text=true&include_quote_count=true&include_reply_count=1&tweet_mode=extended&include_entities=true&include_user_entities=true&include_ext_media_color=true&include_ext_media_availability=true&send_error_codes=true&simple_quoted_tweet=true&q=(afd)%20-forecast%20since%3A2021-09-13%20until%3A2021-09-16&tweet_search_mode=live&count=20&query_source=typed_query&pc=1&spelling_corrections=1&ext=mediaStats%2ChighlightedLabel%2CvoiceInfo
# https://twitter.com/i/api/2/search/adaptive.json?include_profile_interstitial_type=1&include_blocking=1&include_blocked_by=1&include_followed_by=1&include_want_retweets=1&include_mute_edge=1&include_can_dm=1&include_can_media_tag=1&skip_status=1&cards_platform=Web-12&include_cards=1&include_ext_alt_text=true&include_quote_count=true&include_reply_count=1&tweet_mode=extended&include_entities=true&include_user_entities=true&include_ext_media_color=true&include_ext_media_availability=true&send_error_codes=true&simple_quoted_tweet=true&q= afd %20-forecast%20since%3A2021-09-13%20until%3A2021-09-16&tweet_search_mode=live&count=20&query_source=typed_query&pc=1&spelling_corrections=1&ext=mediaStats%2ChighlightedLabel%2CvoiceInfo



